package com.democxy.modules.cms.entity;

import org.hibernate.validator.constraints.Length;

import com.democxy.common.baseData.BaseEntity;

/**
 * 博客类型Entity
 * @author democxy
 * @version 2020-03-11
 */
public class BlogType extends BaseEntity<BlogType> {
	
	private static final long serialVersionUID = 1L;
	private String id;
	private String name;		// 名称
	private String type;		// 1.博客类别 2.博客标签
	private String showType; //显示方式
	
	public BlogType() {
		super();
	}

	public BlogType(String id){
		this.id = id;
	}
	
	public String getId() {
		return id;
	}


	public void setId(String id) {
		this.id = id;
	}
	

	@Length(min=1, max=100, message="名称长度必须介于 1 和 100 之间")
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}
	
	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}

	public String getShowType() {
		return showType;
	}

	public void setShowType(String showType) {
		this.showType = showType;
	}
}